import os

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'pipeline.middleware.MinifyHTMLMiddleware',
    'django.middleware.cache.CacheMiddleware', # this needs to be after anything that might modify the vary header
)

STATIC_ROOT = '%s/test/' % os.getcwd() 
PIPELINE_URL = '/static/'
PIPELINE = True
PIPELINE_VERSION = True
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_YUI_BINARY = 'java -jar ' + STATIC_ROOT + 'lib/yuicompressor-2.4.7.jar'
PIPELINE_CSS = {
    'sidebar': {
        'source_filenames': (
         STATIC_ROOT + 'css/sidebar.css',
         STATIC_ROOT + 'css/sidebarContent.css',
        ),
        'output_filename': STATIC_ROOT + 'compressed/sidebarCompress.css',
        'extra_context': {
            'media': '',
        },
    },
}

PIPELINE_JS = {
    'baseSidebar': {
        'source_filenames': (
          STATIC_ROOT + 'js/base.js',
          STATIC_ROOT + 'js/sidebar.js',
        ),
        'output_filename': 'static_media/compressed/baseSidebar.js',
    },
    'jquery': {
        'external_urls': (
            'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js',
            'http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js'
        ),
    },
}